﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Dto.Business
{
    /// <summary>
    /// 工位视图 ws推送前端进行大屏显示
    /// </summary>
    public class WorkPositionDto
    {
        /// <summary>
        /// 工位编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string Location { get; set; }
        /// <summary>
        /// 当前任务编号
        /// </summary>
        public string TaskNo {  get; set; }
        /// <summary>
        /// 0 无加工 1 OK 2NG
        /// </summary>
        public int Status {  get; set; }

        public string OperateTime {  get; set; }


        

    }

    public class WorkPositionResponse
    {
        public WorkPositionResponse() {
            Positions = new List<WorkPositionDto>() {
            new WorkPositionDto(){ Id = 1,Name = "托盘进站",Location="尺寸测量位",TaskNo = "",Status=0,OperateTime = "-" },
            new WorkPositionDto(){ Id = 2,Name = "抓取校验",Location="机械手抓取位",TaskNo = "",Status=0,OperateTime = "-" },
            new WorkPositionDto(){ Id = 3,Name = "托盘解绑",Location="纸箱成型位",TaskNo = "",Status=0,OperateTime = "-" },
            new WorkPositionDto(){ Id = 4,Name = "打印面单",Location="打印面单位",TaskNo = "",Status=0,OperateTime = "-" },
            new WorkPositionDto(){ Id = 5,Name = "校验面单",Location="校验面单位",TaskNo = "",Status=0,OperateTime = "-" },
            new WorkPositionDto(){ Id = 6,Name = "上传系统",Location="出站",TaskNo = "",Status=0,OperateTime = "-" },
        };

        }
        public List<WorkPositionDto> Positions {  get; set; }

        public MainWork01Dto Work01 { get; set; }
    }



}
